#pragma once
#include "Character.h"
#include "Item.h"

class Luigi : public Character
{
private:
	Item items[10];

public:
	Luigi()
	{
		name = "Luigi";
		maxHP = 10;
		hP = maxHP;
		attack = 1;
		defense = 0;
		ZeroMemory(items);
	}

	string getName()
	{
		return name;
	}

	int getHP()
	{
		return hP;
	}

	short getMaxHP()
	{
		return maxHP;
	}

	void damageTaken(int damage)
	{
		hP -= (damage - defense);
	}

	void addItem(Item newItem)
	{
		for(int n = 0; n < 10; ++n)
		{
			if(item[n] == NULL)
			{
				item[n] = newItem;
				return;
			}
		}
	}

	void removeItem()
	{
		for(int n = 0; n < 10; ++n)
		{
			if(n != 0)
			{
				if(item[n] == NULL)
				{
					item[n-1] = NULL;
					return;
				}
			}
		}

		item[9] = NULL;
	}
};